

<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#1baeae">
    <van-swipe-item v-for="(item, index) in list" :key="index">
      <img :src="img(item.carouselUrl)" alt="">
    </van-swipe-item>
  </van-swipe>
</template>

<script>

export default {
  props: {
    list: {
      type: Array,
      default: null
    }
  },
  methods: {
    goTo(url) {
      window.open(url)
    }
  }
}
</script>

<style lang='less' scoped>
  .my-swipe .van-swipe-item {
    img {
      margin-top: 45px;
      height: 180px;
      width: 100%;
    }
  }
</style>
